
#ifndef __SYSTASK_H
#define	__SYSTASK_H

#include <stdint.h>

#ifdef	__cplusplus
extern "C" {
#endif
	
#ifdef   _SYSTASK_MODULE_
#define  MY_EXT
#else
#define  MY_EXT  extern
#endif  


MY_EXT uint8_t bSysPulse_1s;
MY_EXT uint8_t bSysPulse_500ms;
MY_EXT uint8_t bSysPulse_250ms;
MY_EXT uint8_t bSysPulse_100ms;

MY_EXT uint16_t  SysPulseTimeCnt_1s;
MY_EXT uint16_t  SysPulseTimeCnt_500ms;
MY_EXT uint16_t  SysPulseTimeCnt_250ms;
MY_EXT uint16_t  SysPulseTimeCnt_100ms;

typedef struct 
{
	uint32_t sem_req;
	uint32_t sem_snd_tick;
	uint32_t sem_rcv_tick;
	uint32_t sem_tick_used;
	
	uint32_t mutex_busy;
	uint32_t mutex_req;
	uint32_t mutex_snd_tick;
	uint32_t mutex_rcv_tick;
	uint32_t mutex_tick_used;
	
	uint32_t quene_req;
	uint32_t quene_snd_tick;
	uint32_t quene_rcv_tick;
	uint32_t quene_used;
	
	uint32_t dat[32];
	
} api_tst_type;

MY_EXT volatile api_tst_type api;

#undef MY_EXT

#ifdef	__cplusplus
}
#endif

#endif	/* __SYSTASK_H */
